package work.string;

public class Problem459 {
    public boolean repeatedSubstringPattern(String s) {
        String temp = s+s;
        //去除首位，为消除原来s字符串的影响
        String substring = temp.substring(1, temp.length() - 1);
        return substring.contains(s);
    }

    public static void main(String[] args) {
        Problem459 problem459 = new Problem459();
        problem459.repeatedSubstringPattern("abcabc");
    }
}
